﻿namespace Test30.Engine
{
    public class CureDiseaseAction : Action
    {
        public CureDiseaseAction(Entity entity)
            : base(entity)
        {
        }

        protected override ActionResult OnProcess()
        {
            // see if the entity actually is diseased
            if (Entity.Health.HasBonus(BonusType.Disease))
            {
                Entity.Health.SetBonus(BonusType.Disease, 0);
            }


            return ActionResult.Done;
        }
    }
}
